package com.imooc.bo;

import com.imooc.enums.PayMethod;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <h1>创建订单bo</h1>
 *
 * @author : dzj
 * @create: 2022-02-21 11:34
 */

@Data
public class SubmitOrderBo {
    @NotEmpty
    private String userId;
    @NotEmpty
    private String itemSpecIds;
    @NotEmpty
    private String addressId;
    @NotNull
    @Max(value = 2,message = "支付方式不支持")
    @Min(value = 1,message = "支付方式不支持")
    private Integer payMethod;
    private String leftMsg;
}
